Skip to main content

duration

Type​

property

Summary​

Specifies the length of a sound or movie.

Syntax​

get the duration of <player>

Description​

Use the duration property to find out how long a movie or sound takes to play.

The duration of a player is the number of intervals in the movie or sound contained in the player. (The number of intervals per second is specified by the player's timeScale property.)

Examples​

put (the duration of me/the timeScale of me) into totalSeconds

Value​

NameTypeDescription

value

The duration of a player is an integer. This property is read-only and cannot be set.

glossary: property

keyword: player

object: player

property: looping, showSelection, callbacks, startTime, timeScale

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?